<template>

<h2>测试pinia</h2>

<span>
        编号：{{ memberStore.Sid }}
        姓名：{{ memberStore.Name }}
        分数：{{ memberStore.SCore }}

    重新计算后:{{ memberStore. doubleScores}}
    <button @click=" memberStore.addscore">计算</button>


</span>



</template>
<script setup  lang="ts">



import {useCounterStore} from '../../Store/Index'

const memberStore=useCounterStore();

alert(memberStore.SCore)



</script>